package hy.config;

import org.redisson.Redisson;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RedisConfig {
    @Bean
    public Redisson red(){
        Config cfg=new Config();
        cfg.useSingleServer().setAddress("redis://192.168.184.100:6379");
        return (Redisson) Redisson.create(cfg);
    }
}
